package com.dao;
/**
 * 裁判的实体类
 */

import com.model.Judge;
import com.utils.DatabaseOperations;
import com.utils.DatabaseOperationsImp;
import com.utils.JdbcUtils;

import java.sql.*;

public class JudgeDao extends DatabaseOperations implements DatabaseOperationsImp {

    String table="judge";
    String[] nations={"id","name","birthday","id_number","cert_id","cert_time","rank"};
    public String[][] browsingData() {
        return super.browsingData(table);
    }

    public boolean addData(String[] columnName, String[] str) {
        return super.addData(table, columnName, str);
    }

    public boolean deleteData(String columnName, String newData) {
        return super.deleteData(table, columnName, newData);
    }

    public boolean updateData(String columnName, String newData, String index, String idValue) {
        return super.updateData(table, columnName, newData, index, idValue);
    }

    public String[][] queryData(String index, String idValue) {
        return super.queryData(table, index, idValue);
    }

    public String[] nationsV(String item) {
        return super.nationsV("judge", item);
    }

    public String[] getNations(){
        return this.nations;
    }
}
